package top.continew.admin.system.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 任务处理请求参数
 *
 * @author Charles7c
 * @since 2023/12/26 22:09
 */
@Data
@Schema(description = "任务处理请求参数")
public class TaskHandlerReq {
    /**
     * 名称
     */
    @Schema(description = "任务id", example = "存储1")
    @NotNull(message = "任务id不能为空")
    private Long id;

    /**
     * 处理附件
     */
    @Schema(description = "处理附件", example = "存储1")
    private List<String> files;

    /**
     * 任务状态
     */
    @Schema(description = "处理状态", example = "doing")
    @NotEmpty(message = "处理状态不能为空")
    private String taskStatus;
    /**
     * 备注
     */
    @Schema(description = "备注", example = "存储1")
    private String notes;
}
